package com.zzf.适配器模式;

public class Adapter implements MyFun{

    private Funner funner;

    public Adapter(Funner funner) {
        this.funner = funner;
    }

    @Override
    public void add(Object obj) {
        funner.save(obj);
    }

    @Override
    public void remove(Object... objs) {
        for (Object obj:objs){
            funner.delete(obj);
        }
    }
}
